<?php
namespace app\common\model\user;

use app\common\model\TimeModel;

class Address extends TimeModel
{
    protected $deleteTime = 'delete_time';
    public static function onAfterInsert($data){

        //$self = new static();
        $article = self::withoutGlobalScope()->find($data->id);

        $article->withoutGlobalScope()->where('id',$data->id)->save(['app_id'=>self::get_appId()]);

    }
}